# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-notifiers
_pkgname=notifiers
pkgver=1.3.6
pkgrel=1
pkgdesc='The easy way to send notifications.'
arch=('any')
url='https://pypi.org/project/notifiers/#files'
license=('MIT')
depends=('python' 'python-click' 'python-jsonschema' 'python-requests')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a7ba0ef6f389687997364d95f78f7ddebf17f45c470b0ebf67880c024828c0110b6dcedaa1b8d51d0f65538113ba0ec0974db1b321d63e0b3edaa9eebe3e17c2')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

